﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace helloworld2.MODEL
{
    //STATIONS ON THE ROAD
    class SOTR
    {
        public double lengthToNext { get; set; }
        public SOTR lastStation { get; set; }
        public SOTR nextStation { get; set; }
        KeyValuePair<int, int> coordinates;

        public SOTR(double lenghtToNext, SOTR lastStation, SOTR nextStation)
        {
            this.lengthToNext = lengthToNext;
            this.lastStation = lastStation;
            this.nextStation = nextStation;
        }

        public SOTR(double lenghtToNext, SOTR nextStation)
        {
            this.lengthToNext = lengthToNext;
            this.nextStation = nextStation;
        }

        public SOTR()
        {

        }

        public void setCoordinats(KeyValuePair<int, int> coordinates)
        {
            this.coordinates = coordinates;
        }

        public KeyValuePair<int, int> getCoordinats()
        {
            KeyValuePair<int, int> coords = new KeyValuePair<int, int>(coordinates.Key, coordinates.Value);
            return coords;
        }
    }
}
